package com.nuoniu.sibanyun.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nuoniu.sibanyun.entity.SysIndustry;
import com.nuoniu.sibanyun.mapper.SysIndustryMapper;
import com.nuoniu.sibanyun.service.ISysIndustryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 行业性质-系统设置 服务实现类
 * </p>
 *
 * @author baiqiang
 * @since 2020-09-25
 */
@Service
public class SysIndustryServiceImpl extends ServiceImpl<SysIndustryMapper, SysIndustry> implements ISysIndustryService {

    @Override
    public List<SysIndustry> enableList() {
        QueryWrapper<SysIndustry> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("status",0);
        List<SysIndustry> list = list(queryWrapper);
        return list;
    }
}
